package org.example.course.mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.example.course.domain.User;
import org.example.course.dto.UserModel;

/**
 * @Classname UserMapper
 * @Description 用户Mapper
 * @Date 2020/5/8 13:05
 * @Created by
 */
@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);


    User findByLoginNameAndPassword(@Param("loginName")String loginName,@Param("password")String password);



    List<User> findAll(UserModel userModel);


    User findByIdAndPassword(@Param("id")Integer id,@Param("password")String password);







}